using System;
using System.Collections.Generic;
using System.Text;

namespace BIUtilities.Publish.PasWebService
{
    /// <summary>
    /// Partial class to the PAS Webservice Class.
    /// </summary>
    public partial class PStore
    {
        /// <summary>
        /// The default constructor from the PAS Wsdl bombs. This allows the URL to be set directly.
        /// </summary>
        /// <param name="url"></param>
        public PStore(string url)
        {
            this.Url = url;
            if ((this.IsLocalFileSystemWebService(this.Url) == true))
            {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else
            {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
    }
}
